package m2.connector;
import java.util.ArrayList;

import m2.role.ProvidedRole;
import m2.role.RequiredRole;

public class ConnectorInterface{
	
	ArrayList<RequiredRole> listeRequiredRole;
	ArrayList<ProvidedRole> listeProvidedRole;
		
	/**
	 * 
	 */
	public ConnectorInterface(){
		listeRequiredRole = new ArrayList<RequiredRole>();
		listeProvidedRole = new ArrayList<ProvidedRole>();
	}
	
	/**
	 * 
	 * @return
	 */
	public ArrayList<RequiredRole> getListeRequiredRole() {
		return listeRequiredRole;
	}
	
	/**
	 * 
	 * @return
	 */
	public ArrayList<ProvidedRole> getListeProvidedRole() {
		return listeProvidedRole;
	}
	
	/**
	 * 
	 * @param roles
	 */
	public void addRequiredRole(RequiredRole ... roles){
		for(RequiredRole role : roles){
			listeRequiredRole.add(role);
		}
	}
	
	/**
	 * 
	 * @param roles
	 */
	public void addProvidedRole(ProvidedRole ... roles){
		for(ProvidedRole role : roles){
			listeProvidedRole.add(role);
		}
	}
	
}
